package xdu.lz.stage2_design_pattern.chapter15_thread_per_message_pattern;


public class PreThreadClient {
    public static void main(String[] args) {
        MessageHandler messageHandler = new MessageHandler();
        Message message;
        for (int i = 0; i < 10; i++) {
            message = new Message("message " +i);
            messageHandler.request(message);

        }
        messageHandler.shutdown();
    }
}
